/*
 * @Author: 0x9DEFA478
 * @Date: 2021-07-30 19:07:58
 * @LastEditTime: 2025-07-27 00:39:20
 * @LastEditors: 0x9DEFA478
 * @Description: 
 * QQ:2652450237
 * ============================================================================================================================================
 * 
 * 
 * 
 *                                                                                               ************      ****************************
 *                                                                                             ************      ****************************  
 *                                                                                           ************      ****************************    
 *                                                                                         ************      ****************************      
 *                                                                                       ************      ************                        
 *                                                                                     ************      ************                          
 *                                                                                   ************      ************                            
 *                                                                                 ************      ************                              
 *                                                                               ************      ************                                
 *                                                                             ************      ************                                  
 *                                                                           ************      ************                                    
 *                                                                         ************      ************                                      
 *                                                                       ************      ************                                        
 *                                                                     ************      ************                                          
 *                                                                   ************      ************                                            
 *                                                                 ************      ************                                              
 *                                                               ************      ************                                                
 *                                                             ************      ************                                                  
 *                                                           ************      ************                                                    
 *                                                         ************      ************                                                      
 *                                                       ************      ************                                                        
 *                                                     ************      ************                                                          
 *                                                   ************      ************                                                            
 *                                                 ************      ************                                                              
 *                                               ************      ************                                                                
 *                                             ************      ************                                                                  
 *                                           ************      ************                                                                    
 *                                         ************      ************                                                                      
 *                                       ************      ************                                                                        
 *                                     ************      ************                                                                          
 *                                   ************      ************                                                                            
 *                                 ************      ************                                                                              
 *                               ************      ************                                                                                
 *                             ************      ************                                                                                  
 *                           ************      ************                                                                                    
 *                         ************      ************                                                                                      
 *       ****************************      ************                                                                                        
 *     ****************************      ************                                                                                          
 *   ****************************      ************                                                                                            
 * ****************************      ************                                                                                              
 * 
 * 
 * 
 * ============================================================================================================================================
 * 
 */
#include "./H_Icon.h"




/**
 * @brief 70x40图标绘制
 * @param DrawPoint 打点方法
 * @param v 调用DrawPoint传入的参数
 * @return 无
 */
void H_Icon_Draw_70x40(void (*DrawPoint)(void* v,int X,int Y),void* v){
  int x;
  int y;
  int i;
  int j;

  x=3;
  y=36;
  for(j=0;j<4;j++){
    for(i=0;i<8;i++){
      DrawPoint(v,x+i,y+j);
    }
    x--;
  }

  x=62;
  y=0;
  for(j=0;j<4;j++){
    for(i=0;i<8;i++){
      DrawPoint(v,x+i,y+j);
    }
    x--;
  }

  x=47;
  y=0;
  for(j=0;j<40;j++){
    for(i=0;i<6;i++){
      DrawPoint(v,x+i,y+j);
      DrawPoint(v,x+i+9,y+j);
    }
    x--;
  }

}

/**
 * @brief (70x40)*Mul 图标绘制
 * @param DrawPoint 打点方法
 * @param v 调用DrawPoint传入的参数
 * @return 无
 */
void H_Icon_Draw_70x40Mul(void (*DrawPoint)(void* v,int X,int Y),void* v,int Mul){
  int x;
  int y;
  int i;
  int j;
  int mi;
  int mj;

  x=(3+1)*Mul-1;
  y=(36+1)*Mul-1;
  mi=8*Mul;
  mj=4*Mul;
  for(j=0;j<mj;j++){
    for(i=0;i<mi;i++){
      DrawPoint(v,x+i,y+j);
    }
    x--;
  }

  x=(62+1)*Mul-1;
  y=(0+1)*Mul-1;
  for(j=0;j<mj;j++){
    for(i=0;i<mi;i++){
      DrawPoint(v,x+i,y+j);
    }
    x--;
  }

  x=(47+1)*Mul-1;
  y=(0+1)*Mul-1;
  mi=6*Mul;
  mj=40*Mul;
  for(j=0;j<mj;j++){
    for(i=0;i<mi;i++){
      DrawPoint(v,x+i,y+j);
      DrawPoint(v,x+i+9*Mul,y+j);
    }
    x--;
  }

}

